<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>a.html</h1>
    <script src="./peerjs.min.js"></script>
    <script>
      const peer = new Peer("a-html", {
        host: "localhost",
        port: 9000,
        path: "/rtc",
      });
      peer.on("connection", function (conn) {
        console.log("conn ...");
        conn.on("data", function (data) {
          // Will print 'hi!'
          console.log(data);
        });
      });
    </script>
  </body>
</html>
